<?php
header("Content-Type: text/html; charset=utf-8",true);
include_once("../../includes/cls.config.php");
include_once("cls.base.php");

class idioma extends base
{	
 	public $id;
	public $nome;
	public $sigla;
	public $situacao;
	public $edicao_manchete;
	public $edicao_destaque;
	public $edicao_menu_superior;
	public $edicao_menu_inferior;
	public $edicao_menu_imagem;
	public $edicao_veja_mais;
	public $edicao_pesquisa;
	public $edicao_ano;
	public $edicao_rodape;
	public $link_inicial;
	public $link_assinatura;
	public $link_pesquisa_avancada;
	public $link_colaboradores;
	public $link_expediente;
	public $link_revista_anterior;
	public $mes_jan;
	public $mes_fev;
	public $mes_mar;
	public $mes_abr;
	public $mes_mai;
	public $mes_jun;
	public $mes_jul;
	public $mes_ago;
	public $mes_set;
	public $mes_out;
	public $mes_nov;
	public $mes_dez;

	public $_sTabela;
	public $_db;
	
	public function __construct()
	{
		$this->_sTabela = "idioma";
		$this->_db = new mysql();
	}
	
	public function situacao( $item, $acao )
	{
		if($acao == "ativar")
		{
			$sql = "UPDATE idioma SET situacao = 1 WHERE id = '" . $item . "'";
			return $this->_db->qry( $sql );
		}
		else
		{
			$sql = "UPDATE idioma SET situacao = 0 WHERE id = '" . $item . "'";
			return $this->_db->qry( $sql );
		}
	}
}
?>